const userRoles = {
  list: [
    {
      id: 1,
      roleName: '戴怡凡',
      roleCode: '教师',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        },
        {
          id: 2,
          permissionGroupName: '新增'
        },
        {
          id: 3,
          permissionGroupName: '删除'
        }
      ],
      roleDesc: '管理者'
    },
    {
      id: 2,
      roleName: '曾小龙',
      roleCode: '教师',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        },
        {
          id: 2,
          permissionGroupName: '新增'
        },
        {
          id: 3,
          permissionGroupName: '删除'
        }
      ],
      roleDesc: '管理者'
    },
    {
      id: 3,
      roleName: '胡峻',
      roleCode: '学生',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        }
      ],
      roleDesc: '学生'
    },
    {
      id: 4,
      roleName: '贺斌',
      roleCode: '学生',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        }
      ],
      roleDesc: '学生'
    },
    {
      id: 5,
      roleName: '刘杰',
      roleCode: '学生',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        }
      ],
      roleDesc: '学生'
    },
    {
      id: 6,
      roleName: '吴德怀',
      roleCode: '学生',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        }
      ],
      roleDesc: '学生'
    },
    {
      id: 7,
      roleName: '李斌',
      roleCode: '学生',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        }
      ],
      roleDesc: '学生'
    },
    {
      id: 8,
      roleName: '刘进',
      roleCode: '学生',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        }
      ],
      roleDesc: '学生'
    },
    {
      id: 9,
      roleName: '邓响芳',
      roleCode: '学生',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        }
      ],
      roleDesc: '学生'
    },
    {
      id: 10,
      roleName: '刘昌景',
      roleCode: '学生',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        }
      ],
      roleDesc: '学生'
    },
    {
      id: 11,
      roleName: '吴德怀',
      roleCode: '学生',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        }
      ],
      roleDesc: '学生'
    },
    {
      id: 12,
      roleName: '朱梦龙',
      roleCode: '学生',
      permissionGroupList: [
        {
          id: 1,
          permissionGroupName: '查询'
        }
      ],
      roleDesc: '学生'
    },
  ],
  total: 7
}
module.exports = [
  // roles search 角色查找
  {
    url: '/roles/search',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: userRoles
      }
    }
  },

  // roles add 用户新增
  {
    url: '/roles/add',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: 'success'
      }
    }
  },

  // roles delete 用户删除
  {
    url: '/roles/delete',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: 'success'
      }
    }
  },

  // roles update 用户更新
  {
    url: '/roles/update',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: 'success'
      }
    }
  }, 
]